import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.0
import "Controls" as MyControls

ApplicationWindow {
    width: 400
    height: 400
    visible: true

    Column {
        // 一次性自定义方式，直接修改某些属性，不方便复用
        Button {
            id: button
            text: "A Special Button"
            background: Rectangle {
                implicitWidth: 100
                implicitHeight: 40
                color: button.down ? "#d6d6d6" : "#f6f6f6"
                border.color: "#26282a"
                border.width: 1
                radius: 4
            }
        }
        // 自定义控件保存在单独文件中，方便复用
        MyControls.MyButton {
            id: button2
            text: "MyButton"
        }
    }

}
